import request from '@/utils/request'

// 查询工单流转列表
export function listWorkOrderCirculation(query) {
  return request({
    url: '/ems/workOrderCirculation/list',
    method: 'get',
    params: query
  })
}

// 查询工单流转详细
export function getWorkOrderCirculation(id) {
  return request({
    url: '/ems/workOrderCirculation/' + id,
    method: 'get'
  })
}

// 新增工单流转
export function addWorkOrderCirculation(data) {
  return request({
    url: '/ems/workOrderCirculation',
    method: 'post',
    data: data
  })
}

// 修改工单流转
export function updateWorkOrderCirculation(data) {
  return request({
    url: '/ems/workOrderCirculation',
    method: 'put',
    data: data
  })
}

// 删除工单流转
export function delWorkOrderCirculation(id) {
  return request({
    url: '/ems/workOrderCirculation/' + id,
    method: 'delete'
  })
}
